x86emul: simplify FPU source operand handling
authorJan Beulich <jbeulich@suse.com>
Fri, 9 Dec 2016 11:02:45 +0000 (12:02 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 9 Dec 2016 11:02:45 +0000 (12:02 +0100)
commit246ffcd0a2a6c661cdf330020b320898d510dba0
tree91b7af4a485a693e78c11ef20b111be4ddc87b35
parente4f2c50d6dbc5143c7b36edb4ccde0a3cf224793
x86emul: simplify FPU source operand handling

Consistently use ea instead of src for passing the memory address to
->read(). This eliminates the need to copy ea to src, resulting in a
couple of hundred bytes smaller binary size.

In addition for opcode DE we can leverage SrcMem16 to eliminate a call
of the ->read() hook. At the same time drop the stray Mov attributes
from D8, DA, DC, and DE: They're meaningful for memory writes only.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/x86_emulate/x86_emulate.c